define (require, exports, module) ->
  # 基础服务
  base_api = require 'mods/api/base_api'
  # 定义组件
  module.exports =

    # 查询产品详情
    getProductDetail: (params) ->
      url = "/product_find_one?res_id=151"
      return base_api.postRequestByParams url, params

    # 查询净值列表
    getNetList: (params) ->
      url = "/cpjz_query?res_id=142"
      return base_api.postRequestByParams url, params

    # 查询公告列表
    getNoticeList: (params) ->
      url = "/notice_query?res_id=180"
      return base_api.postRequestByParams url, params

    # 查询法律文件列表
    getLawList: (params) ->
      url = "/law_query?res_id=136"
      return base_api.postRequestByParams url, params

    # 查询用户信息
    getUserSession: () ->
      url = "/user/session"
      return base_api.getRequest url